import request from '@/utils/request'


const register = ({name, telephone, password})=>{
    return request.post('register',{name, telephone, password})
}

const login = ({phone, password})=>{
    return request.post('login',{phone, password})
}

const userInfo = (id)=>{
    return request.get("jwt/getUserInfo?id=".$id)
}

export default {
    register,
    login,
}